html,
body {
   /* height: 100%;*/
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: none !important;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}


.form-group{
    margin-bottom: 10px;
}



.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #2563eb;
}

:root {
    --pc-ink: #111827;
    --pc-muted: #667085;
    --pc-panel: #ffffff;
    --pc-line: #d9e1ec;
    --pc-accent: #0ea5a4;
    --pc-accent-2: #2563eb;
    --pc-sidebar: #101827;
    --pc-sidebar-2: #172238;
    --pc-signal: #38bdf8;
}

body[data-sidebar="dark"] {
    background:
        linear-gradient(180deg, #f3f7fb 0%, #eef3f8 46%, #f7f9fc 100%);
    color: var(--pc-ink);
}

.navbar-brand-box {
    background: linear-gradient(145deg, #0f172a 0%, #18233a 55%, #23365a 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}

.vertical-menu {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 164, .26), transparent 34%),
        linear-gradient(180deg, var(--pc-sidebar) 0%, var(--pc-sidebar-2) 54%, #0b1220 100%) !important;
    box-shadow: 18px 0 36px rgba(15, 23, 42, .16);
}

#sidebar-menu .menu-title {
    color: rgba(226, 232, 240, .62) !important;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#sidebar-menu ul li a {
    color: rgba(241, 245, 249, .82) !important;
    margin: 4px 12px;
    border-radius: 10px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

#sidebar-menu ul li a i {
    color: #7dd3fc !important;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li a.active_link,
#sidebar-menu ul li.mm-active > a {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(14, 165, 164, .24), rgba(37, 99, 235, .24));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

#sidebar-menu .sub-menu a {
    color: rgba(226, 232, 240, .74) !important;
    background: transparent;
}

.page-content.page-statistic {
    padding-top: 92px;
}

.page-statistic .page-title-box {
    margin-bottom: 18px;
}

.page-statistic .page-title-box h4 {
    color: var(--pc-ink);
    font-weight: 700;
}

.page-statistic .card {
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.page-statistic .card-body {
    background: rgba(255, 255, 255, .92);
}

.page-statistic .bg-danger.bg-soft,
.page-statistic .bg-success.bg-soft,
.page-statistic .bg-warning.bg-soft {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.page-statistic .text-danger {
    color: #dc2626 !important;
}

.page-statistic .text-success,
.page-statistic .link-success {
    color: #0f766e !important;
}

.page-statistic .text-warning {
    color: #2563eb !important;
}

.page-statistic .input-group-text,
.page-statistic .form-control {
    border-color: #d8e2ee;
}

.page-statistic .form-control {
    border-radius: 9px;
    box-shadow: none;
}

.page-statistic .input-group-text {
    background: #f6f9fd;
}

.page-statistic .btn-primary {
    background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-2));
    border: none;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.page-statistic .table-responsive {
    border-radius: 12px;
}

.price-matrix-table {
    border-color: var(--pc-line) !important;
    background: #ffffff;
}

.price-matrix-table thead th {
    position: static;
    top: auto;
    z-index: auto;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%) !important;
    color: #243044;
    border-color: var(--pc-line) !important;
    font-weight: 700;
    vertical-align: middle;
}

.price-matrix-table tbody td {
    border-color: #e4ebf3 !important;
    vertical-align: middle;
}

.price-matrix-table tbody tr:hover td {
    background-color: #f8fbff;
}

.price-matrix-table h4,
.price-matrix-table h3 {
    letter-spacing: 0;
}

.price-matrix-table td.bg-soft {
    transition: box-shadow .18s ease, transform .18s ease;
}

.price-matrix-table td.bg-soft:hover {
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .14);
}

.dataTables_wrapper .dataTables_info {
    color: var(--pc-muted);
    padding-top: 14px;
}

.DTFC_LeftWrapper .table {
    box-shadow: 14px 0 26px rgba(15, 23, 42, .08);
}

@media (max-width: 991.98px) {
    .page-content.page-statistic {
        padding-top: 78px;
    }

    .price-matrix-table thead th {
        top: auto;
    }
}

/* Horizontal application shell */
.pc-horizontal-shell #page-topbar {
    left: 0;
    right: 0;
    min-height: 76px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(37, 99, 235, .16);
    box-shadow: 0 14px 42px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.pc-horizontal-shell .navbar-header {
    height: auto;
    min-height: 76px;
    gap: 16px;
    padding: 10px 18px;
}

.pc-horizontal-shell .navbar-brand-box {
    width: auto !important;
    min-width: 222px;
    padding: 0;
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

.pc-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    line-height: 1.15;
}

.pc-brand-mark:hover {
    color: #111827;
}

.pc-brand-icon,
.pc-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.pc-brand-icon i,
.pc-user-icon i {
    font-size: 21px;
}

.pc-brand-text {
    display: grid;
    gap: 2px;
}

.pc-brand-text strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pc-brand-text small {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.pc-topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pc-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    color: #334155;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.pc-topnav-link i {
    color: #0ea5a4;
    font-size: 18px;
}

.pc-topnav-link:hover,
.pc-topnav-link.active {
    color: #0f172a;
    background: #eef6ff;
    border-color: rgba(37, 99, 235, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.pc-topnav-link.active i {
    color: #2563eb;
}

.pc-horizontal-shell .vertical-menu {
    display: none !important;
}

.pc-horizontal-shell .main-content {
    margin-left: 0 !important;
    overflow: visible;
}

.pc-horizontal-shell .page-content {
    padding-top: 100px;
}

.pc-horizontal-shell .page-content.page-statistic {
    padding-top: 92px;
}

.pc-horizontal-shell .footer {
    left: 0 !important;
}

.pc-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 6px !important;
    color: #334155;
    border-radius: 999px;
}

.pc-user-trigger:hover {
    color: #0f172a;
    background: #eef6ff;
}

.pc-user-icon-lg {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.pc-user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 12px 16px 10px;
}

.pc-user-dropdown-head strong,
.pc-user-dropdown-head small {
    display: block;
}

.pc-user-dropdown-head strong {
    color: #111827;
    font-size: 14px;
}

.pc-user-dropdown-head small {
    color: #667085;
    font-size: 12px;
}

.pc-horizontal-shell .header-profile-user,
.pc-horizontal-shell .noti-icon {
    display: none !important;
}

@media (max-width: 1180px) {
    .pc-horizontal-shell .navbar-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pc-horizontal-shell .navbar-header > .d-flex:first-child {
        flex: 1 1 calc(100% - 70px);
        flex-wrap: wrap;
        gap: 10px;
    }

    .pc-topnav {
        order: 3;
        width: 100%;
        padding-bottom: 2px;
    }

    .pc-horizontal-shell .page-content {
        padding-top: 138px;
    }

    .pc-horizontal-shell .page-content.page-statistic {
        padding-top: 132px;
    }
}

@media (max-width: 767.98px) {
    .pc-horizontal-shell .navbar-header {
        padding: 8px 10px;
    }

    .pc-horizontal-shell .navbar-brand-box {
        min-width: 0;
    }

    .pc-brand-text small {
        display: none;
    }

    .pc-topnav-link {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .pc-horizontal-shell .page-content,
    .pc-horizontal-shell .page-content.page-statistic {
        padding-top: 128px;
    }
}

/* Price dashboard redesign */
:root {
    --pc-asphalt: #111827;
    --pc-asphalt-2: #172033;
    --pc-asphalt-3: #202c42;
    --pc-blue: #2563eb;
    --pc-sky: #38bdf8;
    --pc-cyan: #22d3ee;
    --pc-panel-soft: rgba(255, 255, 255, .9);
    --pc-border-blue: rgba(96, 165, 250, .22);
}

body[data-sidebar="dark"] {
    background:
        radial-gradient(circle at 28% 0%, rgba(56, 189, 248, .18), transparent 32%),
        linear-gradient(180deg, #eef6ff 0%, #f6f9fd 42%, #edf3fa 100%);
}

.navbar-brand-box,
.vertical-menu {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .22), transparent 32%),
        linear-gradient(180deg, #111827 0%, #172033 52%, #202c42 100%) !important;
}

.vertical-menu {
    border-right: 1px solid rgba(125, 211, 252, .14);
    box-shadow: 18px 0 42px rgba(15, 23, 42, .2);
}

#sidebar-menu .menu-title {
    color: rgba(186, 230, 253, .58) !important;
}

#sidebar-menu ul li a {
    color: rgba(226, 232, 240, .82) !important;
}

#sidebar-menu ul li a i {
    color: rgba(125, 211, 252, .92) !important;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li a.active_link,
#sidebar-menu ul li.mm-active > a {
    background: linear-gradient(135deg, rgba(37, 99, 235, .34), rgba(56, 189, 248, .2));
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .18), 0 10px 26px rgba(2, 132, 199, .12);
}

.page-statistic .page-title-box {
    padding: 4px 0 10px;
}

.page-statistic .page-title-box h4 {
    font-size: 20px;
}

.dashboard-hero {
    position: relative;
}

.hero-panel,
.metric-card,
.insight-strip,
.page-statistic .card {
    border: 1px solid var(--pc-border-blue);
    border-radius: 14px;
    box-shadow: 0 20px 56px rgba(15, 23, 42, .11);
}

.hero-panel {
    min-height: 188px;
    padding: 24px;
    color: #eaf6ff;
    background:
        radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .42), transparent 26%),
        radial-gradient(circle at 12% 90%, rgba(37, 99, 235, .45), transparent 34%),
        linear-gradient(135deg, #111827 0%, #172033 52%, #24344f 100%);
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: 22px;
    bottom: -76px;
    border: 1px solid rgba(186, 230, 253, .22);
    border-radius: 50%;
}

.hero-kicker {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-panel h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0 10px;
}

.hero-panel p {
    color: rgba(226, 232, 240, .82);
    max-width: 520px;
    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta span {
    padding: 6px 10px;
    color: #dff7ff;
    background: rgba(15, 23, 42, .42);
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 999px;
    font-size: 12px;
}

.metric-card {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 250, 255, .9));
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--metric-a), var(--metric-b));
}

.metric-blue {
    --metric-a: #2563eb;
    --metric-b: #60a5fa;
}

.metric-cyan {
    --metric-a: #0891b2;
    --metric-b: #22d3ee;
}

.metric-green {
    --metric-a: #0f766e;
    --metric-b: #2dd4bf;
}

.metric-red {
    --metric-a: #e11d48;
    --metric-b: #38bdf8;
}

.metric-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 14px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.metric-note {
    margin-top: 8px;
    color: #64748b;
}

.insight-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
}

.insight-strip strong {
    display: inline-block;
    margin-right: 6px;
    color: #0f172a;
    font-size: 18px;
}

.insight-strip span {
    color: #667085;
}

.insight-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, .12);
}

.insight-red {
    background: #e11d48;
}

.insight-blue {
    background: #2563eb;
}

.insight-green {
    background: #0891b2;
}

.matrix-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(239, 248, 255, .82));
    border: 1px solid var(--pc-border-blue);
    border-radius: 12px;
}

.toolbar-title {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.toolbar-head {
    min-width: 210px;
}

.toolbar-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.toolbar-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid #cfe1f6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.matrix-filter-group {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid #cfe1f6;
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.matrix-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.matrix-filter-button:hover {
    color: #0f172a;
}

.matrix-filter-button.active {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .18);
}

.matrix-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #cfe1f6;
    border-radius: 10px;
    background: rgba(255, 255, 255, .78);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.matrix-filter-check:hover {
    color: #0f172a;
}

.matrix-filter-check.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.matrix-check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
}

.matrix-filter-check.active .matrix-check-mark {
    background: #2563eb;
    color: #ffffff;
}

.toolbar-search {
    width: 230px;
}

.toolbar-search .input-group-text,
.toolbar-search .form-control,
.toolbar-search .btn {
    border-color: #cfdef0;
}

.matrix-toolbar .toolbar-search .input-group-text,
.matrix-toolbar .toolbar-search .form-control,
.matrix-toolbar .toolbar-search .btn {
    min-height: 34px;
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 11px;
}

.toolbar-search .input-group-text {
    color: #2563eb;
    background: #eff6ff;
}

.page-statistic .btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.price-matrix-table thead th {
    background: linear-gradient(180deg, #f6fbff 0%, #e7f2ff 100%) !important;
    padding: 14px 12px !important;
    height: auto !important;
    min-height: 0;
    line-height: 1.35;
}

.price-matrix-table .store-name {
    color: #075985;
    font-weight: 800;
}

.price-matrix-table td:first-child h3 a {
    color: #0f172a;
}

.price-matrix-table td:first-child .text-muted {
    color: #6b7280 !important;
}

.price-diff {
    min-width: 54px;
    text-align: right;
}

.dataTables_scrollHead {
    border: 1px solid #cfe1f6;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden !important;
    background: #eff6ff;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table {
    width: 100% !important;
}

.dataTables_scrollBody {
    border: 1px solid #d8e6f7 !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    cursor: grab;
    user-select: none;
}

.dataTables_scrollBody.is-dragging-ready,
.dataTables_scrollBody.is-dragging {
    cursor: grabbing;
}

.dataTables_scrollBody.is-dragging a {
    pointer-events: none;
}

.price-matrix-table.table-bordered,
.price-matrix-table.table-bordered th,
.price-matrix-table.table-bordered td {
    border-color: #dbe7f5 !important;
}

.price-matrix-table tbody td {
    background: #ffffff;
    color: #243044;
    border-top: 1px solid #e2ebf6 !important;
}

.price-matrix-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.price-matrix-table tbody tr:hover td:not(.price-cell),
.price-matrix-table tbody tr:hover td.price-empty {
    background: #edf7ff !important;
}

.price-matrix-table tbody td[style*="rgba"] {
    background-clip: padding-box;
}

.price-matrix-table td.price-cell {
    transition: background-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.price-matrix-table tbody tr:hover td.price-up {
    filter: saturate(1.08) brightness(.995);
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .06);
}

.price-matrix-table tbody tr:hover td.price-down {
    filter: saturate(1.08) brightness(.995);
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .06);
}

.price-matrix-table tbody tr:hover td.price-equal {
    filter: saturate(1.06) brightness(.995);
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .06);
}

.price-matrix-table h4 {
    color: #1e293b;
    font-weight: 700;
}

.price-matrix-table .font-size-11 {
    line-height: 1.45;
}

.price-matrix-table a {
    color: #0284c7;
}

.price-matrix-table td:first-child {
    background: #fbfdff !important;
}

.DTFC_LeftWrapper .DTFC_LeftHeadWrapper,
.DTFC_LeftWrapper .DTFC_LeftBodyWrapper {
    border-right: 1px solid #cfe1f6;
}

.DTFC_LeftWrapper .table {
    box-shadow: 10px 0 28px rgba(15, 23, 42, .08);
}

@media (max-width: 1199.98px) {
    .matrix-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .toolbar-search {
        width: 100%;
    }

    .toolbar-controls .btn-primary {
        width: 100%;
    }
}

/* Final premium pass */
.dashboard-hero {
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 14% 12%, rgba(56, 189, 248, .28), transparent 28%),
        radial-gradient(circle at 86% 0%, rgba(37, 99, 235, .3), transparent 34%),
        linear-gradient(135deg, #101827 0%, #172033 48%, #1f2e46 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .24);
}

.dashboard-hero .row {
    position: relative;
    z-index: 1;
}

.hero-panel,
.metric-card,
.insight-strip {
    border-color: rgba(147, 197, 253, .18);
    box-shadow: none;
}

.hero-panel {
    background: rgba(15, 23, 42, .18);
    min-height: 172px;
    border: 1px solid rgba(125, 211, 252, .14);
}

.hero-panel::after {
    border-color: rgba(125, 211, 252, .16);
}

.metric-card {
    min-height: 172px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
    border: 1px solid rgba(191, 219, 254, .16);
    backdrop-filter: blur(14px);
}

.metric-card::before {
    height: 3px;
    opacity: .95;
}

.metric-label {
    color: rgba(219, 234, 254, .76);
}

.metric-value {
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(56, 189, 248, .25);
}

.metric-note {
    color: rgba(219, 234, 254, .68);
}

.insight-strip {
    background: rgba(15, 23, 42, .32);
    border-color: rgba(125, 211, 252, .13);
}

.insight-strip strong {
    color: #ffffff;
}

.insight-strip span {
    color: rgba(219, 234, 254, .78);
}

.insight-dot {
    box-shadow: 0 0 0 5px rgba(56, 189, 248, .1), 0 0 22px rgba(56, 189, 248, .32);
}

.insight-red {
    background: #fb7185;
}

.insight-blue {
    background: #60a5fa;
}

.insight-green {
    background: #22d3ee;
}

.page-statistic > .container-fluid {
    max-width: 1680px;
}

.matrix-toolbar {
    background:
        radial-gradient(circle at 96% 0%, rgba(56, 189, 248, .18), transparent 28%),
        linear-gradient(135deg, #ffffff, #f3f8ff);
}

.toolbar-title {
    font-size: 20px;
}

.toolbar-subtitle {
    max-width: 520px;
}

.price-matrix-table thead th {
    color: #172033;
    text-transform: none;
}

.price-matrix-table .store-name {
    color: #0369a1;
}

.matrix-head-product,
.matrix-head-simple,
.matrix-store-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.matrix-head-product span {
    color: #2563eb;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.matrix-head-product strong,
.matrix-head-simple {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.matrix-head-product small {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.matrix-store-head {
    min-height: 42px;
    justify-content: center;
}

.matrix-store-head .store-name {
    max-width: 174px;
    overflow: hidden;
    color: #075985;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.15;
    white-space: nowrap;
}

.store-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #0369a1 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
}

.store-meta span {
    flex: 0 0 auto;
}

.store-site-link {
    position: absolute;
    right: 0;
    bottom: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #0369a1 !important;
    font-size: 11px;
}

.product-matrix-cell {
    background: #fbfdff !important;
}

.matrix-product-card {
    position: relative;
    min-height: 74px;
    padding-right: 58px;
}

.matrix-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.matrix-product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: #1e293b;
    border: 1px solid #d7e5f5;
    border-radius: 999px;
    background: #f8fbff;
    font-size: 10px;
    font-weight: 850;
}

.matrix-product-name {
    display: block;
    color: #0f172a !important;
    font-size: 11px;
    font-weight: 850 !important;
    line-height: 1.35;
    text-decoration: none !important;
}

.matrix-product-actions {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.matrix-product-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #0369a1 !important;
    border-radius: 50%;
    background: #e0f2fe;
}

.matrix-own-price-cell {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

.matrix-own-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 40px;
    padding: 6px 10px;
    color: #0f172a;
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.matrix-summary-cell {
    background: #ffffff !important;
}

.summary-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.summary-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 950;
}

.summary-lower {
    color: #b91c1c;
    background: #fee2e2;
}

.summary-equal {
    color: #92400e;
    background: #fef3c7;
}

.summary-higher {
    color: #047857;
    background: #d1fae5;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}

.summary-stats span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

.summary-stats b {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.matrix-price-card {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.matrix-price-top,
.matrix-price-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.matrix-price-top strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.matrix-diff {
    display: inline-flex;
    align-items: flex-end;
    flex-direction: column;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
}

.matrix-diff small {
    font-size: 9px;
    font-weight: 850;
}

.matrix-diff.is-lower {
    color: #b91c1c;
}

.matrix-diff.is-higher {
    color: #047857;
}

.matrix-diff.is-equal {
    color: #92400e;
}

.matrix-price-bottom {
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.matrix-price-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #0369a1 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
}

.matrix-price-empty {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    color: #94a3b8;
}

.matrix-price-empty strong {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.matrix-price-empty span {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
}

.price-matrix-table thead th {
    padding: 9px 10px !important;
}

/* Directory tables and forms refresh */
.pc-horizontal-shell .page-content:not(.page-statistic) {
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .18), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.pc-horizontal-shell .page-content:not(.page-statistic) > .container-fluid {
    max-width: 1680px;
}

.pc-horizontal-shell .page-title-box {
    margin: 0 0 18px;
    padding: 18px 22px;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 18px;
    background:
        radial-gradient(circle at 94% 12%, rgba(34, 211, 238, .18), transparent 28%),
        linear-gradient(135deg, #ffffff, #f2f8ff);
    box-shadow: 0 20px 54px rgba(15, 23, 42, .07);
}

.pc-horizontal-shell .page-title-box h4 {
    margin: 0;
    color: #102033;
    font-size: 20px !important;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.pc-horizontal-shell .page-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.pc-horizontal-shell .breadcrumb-item,
.pc-horizontal-shell .breadcrumb-item a {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pc-horizontal-shell .card {
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.pc-horizontal-shell .card-body {
    padding: 20px;
}

.pc-horizontal-shell .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px !important;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
}

.pc-horizontal-shell .card-title::before {
    content: "";
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #22d3ee);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

.pc-horizontal-shell .card-body > .row:first-child {
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 8px 14px;
    border-bottom: 1px solid #e3edf8;
}

.pc-horizontal-shell .card-body > .row:first-child .float-sm-end {
    float: none !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pc-horizontal-shell .search-box {
    margin: 0 !important;
}

.pc-horizontal-shell .search-box .form-control,
.pc-horizontal-shell .card-body > .row:first-child .form-control {
    min-width: 260px;
    height: 42px;
    padding-left: 42px;
    border: 1px solid #d7e5f5 !important;
    border-radius: 999px !important;
    background: #f8fbff !important;
}

.product-list-card .product-list-toolbar {
    margin-bottom: 18px !important;
}

.product-list-card .table-responsive {
    margin-top: 10px;
}

.product-directory-table thead th {
    position: static !important;
}

.product-directory-table .product-name-col {
    min-width: 520px;
}

.product-directory-table .product-identity-col {
    width: 150px;
}

.product-directory-table .product-brand-col {
    width: 190px;
}

.product-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.product-main-link {
    color: #075985 !important;
    font-weight: 850 !important;
    white-space: normal;
}

.product-row-meta {
    margin-top: 5px;
    color: #8a97a8;
    font-size: 11px;
    font-weight: 700;
}

.product-id-pill,
.product-brand-chip,
.product-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.product-id-pill {
    color: #334155;
    background: #eef6ff;
    border: 1px solid #d7e5f5;
}

.product-brand-chip {
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid #bae6fd;
    font-weight: 850;
}

.product-code {
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.product-code-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #eef6ff, #ecfeff);
    border-color: #bfdbfe;
    font-weight: 900;
}

.product-identity-stack,
.product-brand-stack {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    white-space: nowrap;
}

.product-id-inline {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.product-brand-stack .product-code {
    min-height: 24px;
    color: #475569;
    font-size: 11px;
}

.product-brand-plain {
    color: #1f2937;
    font-weight: 850;
}

/* Product detail page */
.product-detail-page .dict-cnod-create,
.product-detail-page .dict-cnod-form {
    width: 100%;
}

.product-detail-page .dict-cnod-form > .row {
    row-gap: 22px;
}

.product-detail-page .dict-cnod-form .card {
    max-width: none;
}

.product-summary-card,
.product-prices-card,
.product-history-card {
    height: 100%;
}

.product-history-card {
    width: 100%;
}

.product-summary-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, .16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fbff);
}

.product-summary-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3edf8;
}

.product-summary-kicker {
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-summary-head h2 {
    max-width: 780px;
    margin: 7px 0 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
}

.product-summary-code {
    min-width: 132px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eef6ff;
    text-align: right;
}

.product-summary-code span,
.product-summary-item span,
.product-price-summary span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.product-summary-code strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 20px;
}

.product-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.product-summary-item {
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid #dce9f8;
    border-radius: 14px;
    background: #ffffff;
}

.product-summary-item strong,
.product-summary-item a {
    display: block;
    margin-top: 7px;
    color: #102033;
    font-size: 15px;
    font-weight: 850;
}

.product-summary-link a {
    color: #0369a1;
}

.product-price-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.product-price-summary > div {
    padding: 11px 12px;
    border: 1px solid #dce9f8;
    border-radius: 14px;
    background: #f8fbff;
}

.product-price-summary strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.product-prices-table td {
    padding: 11px 12px !important;
}

.product-prices-table td:first-child {
    min-width: 180px;
}

.product-price-value {
    min-width: 104px;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.product-price-date {
    color: #64748b !important;
    white-space: nowrap;
}

.product-history-card .row {
    align-items: center;
}

.product-history-card form .row {
    max-width: 760px;
    gap: 10px;
}

.product-history-card form .col-sm-4 {
    flex: 1 1 180px;
    width: auto;
}

.price-dinamic {
    min-height: 390px;
    margin-top: 16px;
}

.price-dinamic canvas {
    max-height: 390px;
}

@media (max-width: 1199.98px) {
    .product-summary-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .product-summary-head,
    .product-summary-grid,
    .product-price-summary {
        grid-template-columns: 1fr;
    }

    .product-summary-code {
        text-align: left;
    }
}

.product-external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    color: #2563eb !important;
    border-radius: 50%;
    background: #eef6ff;
}

/* Links pages */
.link-page-card .card-body {
    padding: 22px;
}

.link-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3edf8;
}

.link-toolbar-note {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.link-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.link-toolbar-actions .form-control,
.link-filter-actions select {
    min-width: 220px;
}

.link-filter-actions .matrix-store-picker-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}

.link-filter-actions .matrix-store-picker-open span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
}

.link-directory-table {
    table-layout: fixed;
}

.link-id-col {
    width: 92px;
}

.link-brand-col {
    width: 150px;
}

.link-competitor-col {
    width: 190px;
}

.link-url-col {
    width: 360px;
}

.link-actions-col {
    width: 64px;
}

.link-url-short {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #0369a1 !important;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.link-save-row {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
}

.link-manual-table {
    table-layout: fixed;
}

.link-manual-table .link-actions-col {
    width: 132px;
}

.link-manual-table .btn-sm {
    min-width: 92px;
    min-height: 36px;
    padding: 0 14px;
}

.link-manual-table .link-input-row td {
    background: #f3f9ff !important;
}

.link-manual-table .link-input-row strong {
    flex: 0 0 260px;
    color: #0f172a;
}

.link-input-line {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100%, 980px);
}

.link-input-line .form-control {
    flex: 1 1 auto;
    min-width: 320px;
}

.link-complete-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    color: #0f766e;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.link-form-page .dict-cnod-form > form > .row > .col-lg-8 {
    max-width: 980px;
}

.link-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.link-form-actions .btn-light {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #d7e5f5;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    font-weight: 850;
}

.pc-horizontal-shell .search-box .search-icon {
    left: 14px;
    color: #2563eb;
}

.pc-horizontal-shell .card-body .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 13px;
    color: #0f172a !important;
    border: 1px solid #d7e5f5;
    border-radius: 999px;
    background: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.pc-horizontal-shell .card-body .btn-link:hover {
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, .32);
    background: #eef6ff;
}

.pc-horizontal-shell .card-body .btn-link i {
    color: #2563eb;
    font-size: 17px !important;
}

.pc-horizontal-shell .table-responsive {
    border: 1px solid #d9e7f6;
    border-radius: 16px;
    background: #ffffff;
    overflow: auto;
}

.pc-horizontal-shell .table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.pc-horizontal-shell .table thead th,
.pc-horizontal-shell .grid-view table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    color: #1e2b3d;
    background: linear-gradient(180deg, #eef6ff, #e5f0fb) !important;
    border-bottom: 1px solid #cbddee !important;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.pc-horizontal-shell .table tbody td,
.pc-horizontal-shell .grid-view table tbody td {
    padding: 14px 16px;
    color: #243044;
    border-top: 1px solid #edf2f7;
    vertical-align: middle;
}

.pc-horizontal-shell .table:not(.price-matrix-table) tbody tr:nth-child(even) td,
.pc-horizontal-shell .grid-view table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.pc-horizontal-shell .table:not(.price-matrix-table) tbody tr:hover td,
.pc-horizontal-shell .grid-view table tbody tr:hover td {
    background: #eff8ff !important;
}

.pc-horizontal-shell .table tbody td:first-child,
.pc-horizontal-shell .grid-view table tbody td:first-child {
    color: #0f172a;
    font-weight: 850;
}

.pc-horizontal-shell .table a,
.pc-horizontal-shell .grid-view table a {
    color: #0369a1;
    font-weight: 720;
}

.pc-horizontal-shell .table a:hover,
.pc-horizontal-shell .grid-view table a:hover {
    color: #2563eb;
}

.pc-horizontal-shell .card-drop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #475569;
    background: #f1f5f9;
}

.pc-horizontal-shell .card-drop:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
}

.pc-horizontal-shell .pagination {
    margin-top: 14px;
    gap: 5px;
}

.pc-horizontal-shell .page-link {
    min-width: 36px;
    height: 36px;
    border: 1px solid #d7e5f5;
    border-radius: 50% !important;
    color: #334155;
    background: #ffffff;
    font-weight: 800;
    text-align: center;
}

.pc-horizontal-shell .page-item.active .page-link,
.pc-horizontal-shell .page-link:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
}

.pc-horizontal-shell .dict-cnod-form > form > .row,
.pc-horizontal-shell .dict-cnod-form > .row {
    row-gap: 18px;
}

.pc-horizontal-shell .dict-cnod-form > form > .row > .col-lg-6:only-child,
.pc-horizontal-shell .dict-cnod-form > .row > .col-lg-6:only-child {
    max-width: 920px;
}

.pc-horizontal-shell .dict-cnod-form .card {
    border-left: 4px solid #22d3ee;
}

.pc-horizontal-shell .product-form-page .dict-cnod-form > form > .row > .col-lg-6:first-child,
.pc-horizontal-shell .product-form-page .dict-cnod-form > .row > .col-lg-6:first-child {
    width: min(100%, 980px);
    flex: 0 0 auto;
}

.pc-horizontal-shell .dict-cnod-form > form > .row > .col-lg-6:nth-child(2):not(:has(.card)),
.pc-horizontal-shell .dict-cnod-form > .row > .col-lg-6:nth-child(2):not(:has(.card)) {
    display: none;
}

.pc-horizontal-shell .dict-cnod-form .card-body {
    padding: 24px;
}

.pc-horizontal-shell .form-group,
.pc-horizontal-shell .mb-3 {
    margin-bottom: 16px;
}

.pc-horizontal-shell label,
.pc-horizontal-shell .control-label {
    margin-bottom: 7px;
    color: #243044;
    font-size: 13px;
    font-weight: 800;
}

.pc-horizontal-shell .form-control,
.pc-horizontal-shell .form-select,
.pc-horizontal-shell select {
    min-height: 42px;
    color: #102033;
    border: 1px solid #cad9ea;
    border-radius: 10px;
    background-color: #fbfdff;
    box-shadow: none;
}

.pc-horizontal-shell .form-control:focus,
.pc-horizontal-shell .form-select:focus,
.pc-horizontal-shell select:focus {
    border-color: #38bdf8;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

.pc-horizontal-shell textarea.form-control {
    min-height: 110px;
}

.pc-horizontal-shell .btn-primary,
.pc-horizontal-shell .btn-success {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .2);
    font-weight: 850;
}

.pc-horizontal-shell .btn-primary:hover,
.pc-horizontal-shell .btn-success:hover {
    filter: brightness(.98);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .26);
}

.pc-horizontal-shell .dict-cnod-form > form > .row > .col-lg-6 > .form-group:last-child,
.pc-horizontal-shell .dict-cnod-form > .row > .col-lg-6 > .form-group:last-child {
    display: inline-flex;
    margin-top: 14px;
    padding: 8px;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
}

@media (min-width: 992px) {
    .pc-horizontal-shell .dict-cnod-form > form > .row > .col-lg-6:first-child:last-child,
    .pc-horizontal-shell .dict-cnod-form > .row > .col-lg-6:first-child:last-child {
        width: 66.6667%;
    }
}

@media (max-width: 991.98px) {
    .link-toolbar {
        flex-direction: column;
    }

    .link-toolbar-actions,
    .link-toolbar-actions .form-control,
    .link-filter-actions select,
    .link-filter-actions .matrix-store-picker-open {
        width: 100%;
    }

    .pc-horizontal-shell .card-body > .row:first-child .float-sm-end {
        justify-content: flex-start;
    }

    .pc-horizontal-shell .search-box .form-control,
    .pc-horizontal-shell .card-body > .row:first-child .form-control {
        min-width: min(100%, 320px);
    }
}

.pc-horizontal-shell .product-detail-page .product-history-card {
    max-width: none;
}

.pc-horizontal-shell .matrix-toolbar .toolbar-controls > .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    height: 38px;
    padding: 0 16px;
    border-radius: 19px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.pc-horizontal-shell .matrix-toolbar .toolbar-controls > .btn-primary i {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1;
}

.pc-horizontal-shell .matrix-toolbar .matrix-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #cfe1f6;
    border-radius: 19px;
    color: #075985;
    background: #ffffff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.pc-horizontal-shell .matrix-toolbar .matrix-search-submit i {
    font-size: 14px;
    line-height: 1;
}

.matrix-scroll-body {
    overflow-x: auto;
    overflow-y: visible;
    border-top: 1px solid #d8e6f7 !important;
    border-radius: 12px !important;
}

.matrix-scroll-body .price-matrix-table {
    width: max-content !important;
    min-width: 100%;
}

.matrix-scroll-body .price-matrix-table thead th {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

.matrix-scroll-body .price-matrix-table th:first-child,
.matrix-scroll-body .price-matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
}

.matrix-scroll-body .price-matrix-table th:first-child {
    z-index: 25;
}

.matrix-sort-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.matrix-sort-link.active .matrix-head-simple::after,
.matrix-sort-link.active .matrix-head-product::after,
.matrix-sort-link.active .matrix-store-head::after {
    content: "↑";
    margin-left: 4px;
    color: #2563eb;
    font-size: 10px;
}

.matrix-sort-link.active.desc .matrix-head-simple::after,
.matrix-sort-link.active.desc .matrix-head-product::after,
.matrix-sort-link.active.desc .matrix-store-head::after {
    content: "↓";
}

.matrix-sort-link .matrix-store-head::after {
    position: absolute;
    right: 0;
    top: 0;
}

.matrix-store-head {
    position: relative;
}

.matrix-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.matrix-page-info {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.matrix-fixed-head {
    position: fixed;
    top: 76px;
    display: none;
    overflow: hidden;
    z-index: 1040;
    border: 1px solid #d8e6f7;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #e7f2ff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
}

.matrix-fixed-head.active {
    display: block;
}

.matrix-fixed-head .price-matrix-table {
    margin: 0 !important;
    table-layout: fixed;
    transform-origin: left top;
}

.matrix-fixed-head .price-matrix-table th {
    position: static !important;
}

.matrix-store-picker-open {
    white-space: nowrap;
}

.matrix-row-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #d7e5f5;
    border-radius: 50%;
    background: #f8fbff;
    color: #0369a1;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.matrix-row-sort:hover,
.matrix-row-sort:focus {
    border-color: #38bdf8;
    background: #eef6ff;
    color: #0f766e;
    transform: translateY(-1px);
}

.matrix-row-sort i {
    font-size: .9rem;
}

.matrix-store-modal .modal-dialog {
    max-width: min(72rem, calc(100vw - 2rem));
}

.matrix-store-modal .modal-content {
    background: #ffffff;
    border: 1px solid rgb(96 165 250 / .22);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgb(15 23 42 / .2);
}

.matrix-store-modal .modal-body {
    background: #ffffff;
}

.matrix-store-modal .modal-header,
.matrix-store-modal .modal-footer {
    background: #f8fbff;
    border-color: #dbe8f7;
}

.matrix-store-modal .modal-title {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 850;
}

.matrix-store-modal-subtitle {
    margin-block-start: .25rem;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 700;
}

.matrix-store-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-block-end: .875rem;
}

.matrix-store-modal-search {
    max-width: 32rem;
}

.matrix-store-modal-search .form-control,
.matrix-store-modal-search .input-group-text {
    border-color: #d8e6f7;
    background: #f8fbff;
}

.matrix-store-modal-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.matrix-store-selected-count {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-block-end: 1rem;
    padding-block: .25rem;
    padding-inline: .625rem;
    border: 1px solid rgb(14 165 164 / .2);
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: .8125rem;
    font-weight: 800;
}

.matrix-store-group-list {
    display: grid;
    gap: 1rem;
}

.matrix-store-group {
    padding-block: .875rem;
    padding-inline: .875rem;
    border: 1px solid #e3edf8;
    border-radius: 8px;
    background: #ffffff;
}

.matrix-store-group h6 {
    margin-block: 0 .625rem;
    color: #2563eb;
    font-size: .875rem;
    font-weight: 850;
}

.matrix-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: .5rem;
}

.matrix-store-option {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    min-height: 3rem;
    margin: 0;
    padding-block: .5rem;
    padding-inline: .625rem;
    border: 1px solid #e6eef8;
    border-radius: 8px;
    background: #fbfdff;
    cursor: pointer;
}

.matrix-store-option:hover {
    border-color: #bfdbfe;
    background: #f1f8ff;
}

.matrix-store-option input {
    flex: 0 0 auto;
    margin-block-start: .1875rem;
    accent-color: #2563eb;
}

.matrix-store-option span {
    display: grid;
    min-width: 0;
}

.matrix-store-option strong {
    overflow: hidden;
    color: #1e293b;
    font-size: .8125rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matrix-store-option small {
    overflow: hidden;
    color: #64748b;
    font-size: .75rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matrix-store-save-state {
    margin-inline-end: auto;
    color: #0f766e;
    font-size: .8125rem;
    font-weight: 750;
}

.matrix-store-save-state.is-error {
    color: #dc2626;
}

@media (width < 48rem) {
    .matrix-store-modal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .matrix-store-modal-search {
        max-width: none;
    }

    .matrix-store-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth screen */
.pc-auth-body {
    min-height: 100dvh;
    margin: 0;
    background:
        linear-gradient(135deg, rgb(16 24 39 / .96) 0%, rgb(23 34 56 / .96) 42%, rgb(15 118 110 / .9) 100%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    color: var(--pc-ink);
}

.pc-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding-block: 2rem;
    padding-inline: 1rem;
}

.pc-auth-card {
    width: min(100%, 27.5rem);
    padding-block: 2rem;
    padding-inline: 2rem;
    border: 1px solid rgb(255 255 255 / .72);
    border-radius: 8px;
    background: rgb(255 255 255 / .96);
    box-shadow: 0 24px 70px rgb(15 23 42 / .24);
}

.pc-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-block-end: 1.75rem;
    color: #111827;
    line-height: 1.15;
}

.pc-auth-brand:hover,
.pc-auth-brand:focus {
    color: #111827;
    text-decoration: none;
}

.pc-auth-heading {
    margin-block-end: 1.5rem;
}

.pc-auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.625rem;
    margin-block-end: .75rem;
    padding-block: .25rem;
    padding-inline: .625rem;
    border: 1px solid rgb(14 165 164 / .24);
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: .75rem;
    font-weight: 800;
}

.pc-auth-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: 0;
}

.pc-auth-heading p {
    margin-block: .5rem 0;
    color: #64748b;
    font-size: .9375rem;
    line-height: 1.5;
}

.pc-auth-form .form-group {
    margin-block-end: 1rem;
}

.pc-auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-block-end: .5rem;
    color: #334155;
    font-size: .8125rem;
    font-weight: 800;
}

.pc-auth-recovery {
    margin-inline-start: auto;
    font-size: .8125rem;
    font-weight: 750;
}

.pc-auth-recovery a,
.pc-auth-connect a {
    color: #2563eb;
}

.pc-auth-input {
    min-height: 3rem;
    padding-block: .75rem;
    padding-inline: .875rem;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
    color: #0f172a;
    font-size: .9375rem;
    font-weight: 650;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pc-auth-input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.pc-auth-input:focus {
    border-color: #38bdf8;
    background: #ffffff;
    box-shadow: 0 0 0 .2rem rgb(56 189 248 / .18);
}

.pc-auth-error,
.pc-auth-form .help-block {
    margin-block: .375rem 0;
    color: #dc2626;
    font-size: .8125rem;
    font-weight: 700;
}

.pc-auth-options {
    margin-block: .25rem 1rem;
}

.pc-auth-options .form-group {
    margin: 0;
}

.pc-auth-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 1.5rem;
    padding: 0;
}

.pc-auth-checkbox .custom-control-input {
    position: static;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border-color: #cbd5e1;
    opacity: 1;
}

.pc-auth-checkbox .custom-control-label {
    color: #475569;
    font-size: .875rem;
    font-weight: 700;
}

.pc-auth-checkbox .custom-control-label::before,
.pc-auth-checkbox .custom-control-label::after {
    display: none;
}

.pc-auth-checkbox .custom-control-input:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgb(37 99 235 / .18);
}

.pc-auth-checkbox .custom-control-input:checked {
    accent-color: #2563eb;
}

.pc-auth-actions {
    margin-block-start: 1rem;
}

.pc-auth-submit {
    width: 100%;
    min-height: 3rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0ea5a4);
    color: #ffffff;
    font-size: .9375rem;
    font-weight: 850;
    box-shadow: 0 14px 28px rgb(37 99 235 / .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.pc-auth-submit:hover,
.pc-auth-submit:focus {
    color: #ffffff;
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgb(37 99 235 / .28);
    transform: translateY(-1px);
}

.pc-auth-submit:active {
    transform: translateY(0);
}

.pc-auth-card .alert {
    margin-block: 0 1rem;
    border-radius: 8px;
    font-weight: 700;
}

.pc-auth-connect:empty {
    display: none;
}

@media (width < 36rem) {
    .pc-auth-page {
        align-items: flex-start;
        padding-block: 1rem;
    }

    .pc-auth-card {
        padding-block: 1.5rem;
        padding-inline: 1.25rem;
    }

    .pc-auth-heading h1 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-auth-input,
    .pc-auth-submit {
        transition-duration: 0.01ms;
    }
}
